<?php

/*
 * Checks to see if autosave is currently active.
 * 
 * return bool
 */
function tyh_ajax_doing_autosave()
{
	if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
	{
		return TRUE;
	}
	return FALSE;
}

function tyh_doing_ajax()
{
	return ( defined('DOING_AJAX') && DOING_AJAX ) ? DOING_AJAX : FALSE;
}